package com.sunrise.util;

import java.time.Instant;
import java.time.LocalDateTime;
import java.time.ZoneId;

/**
 * @Author: liansen
 * @Date: 2024-04-27  16:05
 */
public class DateUtil {

    public static LocalDateTime convertTimestamp(long timestamp) {
        return Instant.ofEpochMilli(timestamp).atZone(ZoneId.systemDefault()).toLocalDateTime();
    }
}
